package com.woniu.aimd.config.ai.chatclient.rag;
import com.woniu.aimd.utils.TextSplit;
import org.springframework.ai.openai.OpenAiEmbeddingModel;
import org.springframework.ai.vectorstore.SimpleVectorStore;
import org.springframework.ai.vectorstore.VectorStore;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration
public class VectorStoreConfig {

    /**
     * 本地内存向量数据库装入
     * @param embeddingModel
     * @param loveAppDocumentLoader
     * @return
     */
//    @Bean
//    public VectorStore woNiuVectorStore(OpenAiEmbeddingModel embeddingModel
//                                            , TextSplit loveAppDocumentLoader) {
//        SimpleVectorStore vectorStore =   SimpleVectorStore.builder(embeddingModel).build();
//        vectorStore.doAdd(loveAppDocumentLoader.loadMarkdowns());
//        return vectorStore;
//    }


}

